package com.zxl.register.server.command;

import com.zxl.register.base.Event;
import com.zxl.register.base.Result;
import com.zxl.register.server.core.ServiceRegistCore;
import lombok.Data;

@Data
public class GetServiceHandler extends CommandHandler {


    @Override
    public String getKey(){
        this.key="getService";
        return  key;
    }

    @Override
    public Result handle(Event event){
        return ServiceRegistCore.getOneServiceProvider(event.getArgs());
    }
}
